package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品对象 product
 * 
 * @author ruoyi
 * @date 2025-11-11
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 产品编号（唯一） */
    @Excel(name = "产品编号", readConverterExp = "唯=一")
    private String productCode;

    /** 款号 */
    @Excel(name = "款号")
    private String styleNo;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 规格 */
    @Excel(name = "规格")
    private String spec;

    /** 码数 */
    @Excel(name = "码数")
    private String size;

    /** 单位（件/米/个/箱） */
    @Excel(name = "单位", readConverterExp = "件=/米/个/箱")
    private String unit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }

    public void setStyleNo(String styleNo) 
    {
        this.styleNo = styleNo;
    }

    public String getStyleNo() 
    {
        return styleNo;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }

    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }

    public void setSize(String size) 
    {
        this.size = size;
    }

    public String getSize() 
    {
        return size;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productCode", getProductCode())
            .append("styleNo", getStyleNo())
            .append("productName", getProductName())
            .append("color", getColor())
            .append("spec", getSpec())
            .append("size", getSize())
            .append("unit", getUnit())
            .append("unitPrice", getUnitPrice())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
